package com.cqut.forum.service;

import java.util.List;
import java.util.Map;

import com.cqut.forum.entity.Relation;
import com.cqut.forum.entity.User;

/**
 * 好友关系service接口
 * @author yangxun
 */
public interface FriendRelationService {
	
	public Relation addFriendRelation(User user,String friendName,String level);
	
	public Relation updateFriendRelation(int relationId);
	
	public Relation deleteRelation(int relationId,boolean isDeep);
	
	public List<Map<String, Object>> getFriendsByUserId(int userId,int index,int size);
	
	public List<Map<String, Object>> loadUserByName(String userName);
	
	public Relation getById(int relatonId);
	
	public boolean updateApply(User user,int relationId,boolean state);
	
	public List<Map<String, Object>> loadApplys(int userId);
	
	public int countFriends(int userId);
	
	public Relation getRelation(int userId,int friendId);
	
	public boolean addCare(int userId,int friendId);
}
